#include <stdio.h>

int main(int argc, char const *argv[])
{
    if( argc != 2 )
    {
        printf("Pls input: ./hello <file name to be created>\n");
        return 0;
    }

    FILE *fpDst = fopen( argv[1], "w+" );
    if( NULL == fpDst )
    {
        printf( "Fail to Create File %s \n", argv[1] );
        return -1;
    }

    printf("Success to Create File %s \n", argv[1]);
    
    int iRet = fclose( fpDst );
    if ( 0 != iRet )
    {
        printf( "Fail fclose %s \n", argv[1] );
        return -1;
    }

    printf( "Success to close File %s \n", argv[1] );

    return 0;
}